<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0}   
        .d1,.d3{
            height: 300px;
            background: rgb(97, 97, 97);
            line-height: 300px;
            text-align: center;
        }  
        h1{
            font-size: 100px;
        }
        .d2,.d4,.d5,.d6{
            height: 500px;
            background-image: url("./11.jpg");
            background-repeat: no-repeat;
            background-size:cover;
            background-attachment: fixed;
            background-position: center center;
        }
        .d4{
            background-image: url("./33.jpg");
        }
        .d5{
            background-image: url("./44.jpg");
        }
        .d6{
            background-image: url("./22.jpg");
        }
    </style>
</head>
<body>        
    <div class="d1"><h1>BEFORE</h1></div>
    <div class="d2"></div>
    <div class="d3"><h1>AFTER</h1></div>   
    <br>
    <hr>
    <br>
    <div class="d1"><h1>BEFORE</h1></div>
    <div class="d4"></div>
    <div class="d3"><h1>AFTER</h1></div>   
    <br>
    <hr>
    <br>
    <div class="d1"><h1>BEFORE</h1></div>
    <div class="d5"></div>
    <div class="d3"><h1>AFTER</h1></div>   
    <br>
    <hr>
    <br>
    <div class="d1"><h1>BEFORE</h1></div>
    <div class="d6"></div>
    <div class="d3"><h1>AFTER</h1></div>   
</body>
</html>